package com.glory.dgcpcpda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class AlarmStepEntity implements Serializable {
  private String stepName;
  private String name;
  private String description;

  public String getStepName() {
    return stepName;
  }

  public void setStepName(String StepName) {
      stepName = StepName;
  }

  public String getName() {
    return name;
  }

  public void setName(String Name) {
    name = Name;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String Nescription) {
    description = Nescription;
  }

  private List<AlarmStepSpecLine> alarmStepSpecLines;

  public List<AlarmStepSpecLine> getAlarmStepSpecLines() {
    if(alarmStepSpecLines == null){
      return new ArrayList<>();
    }
    return alarmStepSpecLines;
  }

  public void setAlarmStepSpecLines(List<AlarmStepSpecLine> AlarmStepSpecLine) {
    alarmStepSpecLines = AlarmStepSpecLine;
  }

  public static class AlarmStepSpecLine implements Serializable{
    private Integer seqNo;
    private String stepDescription;
    private String position;

    public Integer getSeqNO() {
      return seqNo;
    }

    public void setSeqNO(Integer seqNO) {
        seqNo = seqNO;
    }

    public String getStepDescription() {
      return stepDescription == null ? "" : stepDescription;
    }

    public void setStepDescription(String StepDescription) {
      stepDescription = StepDescription;
    }

    public String getPosition() {
      return position == null ? "" : position;
    }

    public void setPosition(String position) {
      this.position = position;
    }
  }

  public static class ALARMSTEPSPECEntity implements Serializable{
    private AlarmStepEntity ALARMSTEPSPEC;

    public AlarmStepEntity getALARMSTEPSPEC() {
      return ALARMSTEPSPEC;
    }

    public void setALARMSTEPSPEC(AlarmStepEntity ALARMSTEPSPEC) {
      this.ALARMSTEPSPEC = ALARMSTEPSPEC;
    }
  }
}
